/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author THIENSUHACK
 */
public class sinhvien {
    private String masv;
    private String hoten;
    private short  gioitinh;
    private String ngaysinh;
    private String diachi;
    private String email;
    private String phone;
    private String matkhau;
    private short trangthai;
    public sinhvien()
    {
        masv="08520111";
        hoten="";
        gioitinh=1;
        
        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

//    Gets a calendar using the default time zone and locale.

    Calendar c1 = Calendar.getInstance();
    c1.set(2111, 10, 11);        
       ngaysinh=sdf.format(c1.getTime());
    }

    /**
     * @return the masv
     */
    public String getMasv() {
        return masv;
    }

    /**
     * @param masv the masv to set
     */
    public void setMasv(String masv) {
        this.masv = masv;
    }

    /**
     * @return the hoten
     */
    public String getHoten() {
        return hoten;
    }

    /**
     * @param hoten the hoten to set
     */
    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    /**
     * @return the gioitinh
     */
    public short getGioitinh() {
        return gioitinh;
    }

    /**
     * @param gioitinh the gioitinh to set
     */
    public void setGioitinh(short gioitinh) {
        this.gioitinh = gioitinh;
    }

    /**
     * @return the ngaysinh
     */
    public String getNgaysinh() {
        return ngaysinh;
    }

    /**
     * @param ngaysinh the ngaysinh to set
     */
    public void setNgaysinh(String ngaysinh) {
        this.ngaysinh = ngaysinh;
    }

    /**
     * @return the diachi
     */
    public String getDiachi() {
        return diachi;
    }

    /**
     * @param diachi the diachi to set
     */
    public void setDiachi(String diachi) {
        this.diachi = diachi;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return the matkhau
     */
    public String getMatkhau() {
        return matkhau;
    }

    /**
     * @param matkhau the matkhau to set
     */
    public void setMatkhau(String matkhau) {
        this.matkhau = matkhau;
    }

    /**
     * @return the trangthai
     */
    public short getTrangthai() {
        return trangthai;
    }

    /**
     * @param trangthai the trangthai to set
     */
    public void setTrangthai(short trangthai) {
        this.trangthai = trangthai;
    }
    
}
